package com.njym.java.security.app.biz;

import com.njym.java.annotation.Cache;
import com.njym.java.security.app.entity.TravelDistance;
import com.njym.java.security.app.mapper.TravelDistanceMapper;
import com.njym.java.security.common.biz.BaseBiz;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 
 *
 * @author lijie
 * @email 717057076@qq.com
 * @date 2019-12-20 10:16:02
 */
@Service
public class TravelDistanceBiz extends BaseBiz<TravelDistanceMapper,TravelDistance> {

//    @Cache(key = "getTravelDistances",expire = 5)
    public List<TravelDistance> getLists() {
        return mapper.getLists();
    }

    @Cache(key = "getCanSupported:{1}",expire = 5)
    public List<TravelDistance> getCanSupported(String place) {
        return mapper.getCanSupported(place);
    }
}